/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - SalesConformationMaster.as.
 */
package com.service
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper;
import com.adobe.serializers.utility.TypeUtility;
import com.model.valueObjects.VoFooterSc;
import com.model.valueObjects.VoFreeAllocated;
import com.model.valueObjects.VoHeaderSC;
import com.model.valueObjects.VoPurchaseOrder;
import com.model.valueObjects.VoSalesConformation;
import com.model.valueObjects.VoScSatisfied;
import com.model.valueObjects.VoStock;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;

import mx.collections.ItemResponder;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;

[ExcludeClass]
internal class _Super_SalesConformationMaster extends com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper
{

    // Constructor
    public function _Super_SalesConformationMaster()
    {
        // initialize service control
        _serviceControl = new mx.rpc.remoting.RemoteObject();

        // initialize RemoteClass alias for all entities returned by functions of this service
        com.model.valueObjects.VoSalesConformation._initRemoteClassAlias();
        com.model.valueObjects.VoStock._initRemoteClassAlias();
        com.model.valueObjects.VoFreeAllocated._initRemoteClassAlias();
        com.model.valueObjects.VoScSatisfied._initRemoteClassAlias();
        com.model.valueObjects.VoHeaderSC._initRemoteClassAlias();
        com.model.valueObjects.VoFooterSc._initRemoteClassAlias();

        var operations:Object = new Object();
        var operation:mx.rpc.remoting.Operation;

        operation = new mx.rpc.remoting.Operation(null, "addNewSalesConformation");
         operation.resultType = Object;
        operations["addNewSalesConformation"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "editSalesConformation");
        operations["editSalesConformation"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "deleteSalesConformation");
         operation.resultType = Object;
        operations["deleteSalesConformation"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllSalaesConformation");
         operation.resultElementType = com.model.valueObjects.VoSalesConformation;
        operations["getAllSalaesConformation"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getSalesConformationByCode");
         operation.resultElementType = com.model.valueObjects.VoSalesConformation;
        operations["getSalesConformationByCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllStockOnSc");
         operation.resultElementType = com.model.valueObjects.VoStock;
        operations["getAllStockOnSc"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getFreeAllocationQty");
         operation.resultElementType = com.model.valueObjects.VoFreeAllocated;
        operations["getFreeAllocationQty"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "addNewPoForIndentSC");
         operation.resultType = Object;
        operations["addNewPoForIndentSC"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "generatePoCode");
         operation.resultType = Object;
        operations["generatePoCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "mapAdvancedScWithPO");
         operation.resultType = Object;
        operations["mapAdvancedScWithPO"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "mapExstockScWithPO");
         operation.resultType = Object;
        operations["mapExstockScWithPO"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "addNewIndentSalesConformationWithPO");
         operation.resultType = Object;
        operations["addNewIndentSalesConformationWithPO"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "updateSelfScAndProductStatus");
         operation.resultType = Object;
        operations["updateSelfScAndProductStatus"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "generateScExstockCode");
         operation.resultType = Object;
        operations["generateScExstockCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "generateScAdvancedCode");
         operation.resultType = Object;
        operations["generateScAdvancedCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "generateScIndentCode");
         operation.resultType = Object;
        operations["generateScIndentCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "generateScSelfCode");
         operation.resultType = Object;
        operations["generateScSelfCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getItemsForDo");
         operation.resultElementType = com.model.valueObjects.VoScSatisfied;
        operations["getItemsForDo"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllSCHeaderList");
         operation.resultElementType = com.model.valueObjects.VoHeaderSC;
        operations["getAllSCHeaderList"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllScFooterPopupList");
         operation.resultElementType = com.model.valueObjects.VoFooterSc;
        operations["getAllScFooterPopupList"] = operation;

        _serviceControl.operations = operations;
        _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
        _serviceControl.source = "SalesConformationMaster";
        _serviceControl.endpoint = "gateway.php";
        destination = "SalesConformationMaster";



         model_internal::initialize();
    }

    /**
      * This method is a generated wrapper used to call the 'addNewSalesConformation' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function addNewSalesConformation(VObject:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addNewSalesConformation");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'editSalesConformation' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function editSalesConformation(VObject:com.model.valueObjects.VoSalesConformation) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("editSalesConformation");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'deleteSalesConformation' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function deleteSalesConformation(serialnumber:int) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("deleteSalesConformation");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(serialnumber) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllSalaesConformation' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllSalaesConformation() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllSalaesConformation");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getSalesConformationByCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getSalesConformationByCode(serialnumber:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getSalesConformationByCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(serialnumber) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllStockOnSc' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllStockOnSc() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllStockOnSc");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getFreeAllocationQty' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getFreeAllocationQty(pro_serialnumber:int) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getFreeAllocationQty");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(pro_serialnumber) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'addNewPoForIndentSC' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function addNewPoForIndentSC(VObjectP:Object, scDetserials:Object, sc_type:Object, self_sc:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addNewPoForIndentSC");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObjectP,scDetserials,sc_type,self_sc) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'generatePoCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function generatePoCode() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("generatePoCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'mapAdvancedScWithPO' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function mapAdvancedScWithPO(scDetserial:Object, pro_serialnumber:Object, quantity:Object, cre_userid_fk:Object, cre_datetime:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("mapAdvancedScWithPO");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(scDetserial,pro_serialnumber,quantity,cre_userid_fk,cre_datetime) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'mapExstockScWithPO' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function mapExstockScWithPO(scDetserial:Object, pro_serialnumber:Object, quantity:Object, cre_userid_fk:Object, cre_datetime:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("mapExstockScWithPO");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(scDetserial,pro_serialnumber,quantity,cre_userid_fk,cre_datetime) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'addNewIndentSalesConformationWithPO' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function addNewIndentSalesConformationWithPO(VObject:com.model.valueObjects.VoSalesConformation, VObjectP:com.model.valueObjects.VoPurchaseOrder) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addNewIndentSalesConformationWithPO");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject,VObjectP) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'updateSelfScAndProductStatus' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function updateSelfScAndProductStatus(po_detserialnumber:Object, allocated_qty:Object, cre_userid_fk:Object, cre_datetime:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("updateSelfScAndProductStatus");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(po_detserialnumber,allocated_qty,cre_userid_fk,cre_datetime) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'generateScExstockCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function generateScExstockCode() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("generateScExstockCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'generateScAdvancedCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function generateScAdvancedCode() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("generateScAdvancedCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'generateScIndentCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function generateScIndentCode() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("generateScIndentCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'generateScSelfCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function generateScSelfCode() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("generateScSelfCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getItemsForDo' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getItemsForDo(customerFk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getItemsForDo");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(customerFk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllSCHeaderList' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllSCHeaderList() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllSCHeaderList");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllScFooterPopupList' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllScFooterPopupList() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllScFooterPopupList");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
}

}
